package com.sc.nft.admin.request;

import com.sc.nft.enums.PrizeDrawActivityPoolBonusTaypEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AddPrizeDrawCctivityPoolBatchRequest {

    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @ApiModelProperty(value = "奖金类型 PLATFORM_LAUNCH:平台首发 SECONDARY_MARKET:二级市场  IP_MALL:IP商城")
    @NotBlank(message = "奖金类型不能为空")
    private PrizeDrawActivityPoolBonusTaypEnum bonusType;

    @ApiModelProperty(value = "关联id")
    @NotNull(message = "关联id不能为空")
    private Long linkId;

    @ApiModelProperty(value = "关联名称")
    @NotBlank(message = "关联名称不能为空")
    private String linkName;

    @ApiModelProperty(value = "关联比例")
    @NotNull(message = "关联比例不能为空")
    @DecimalMin(value = "1", inclusive = false,message = "关联比例必须大于0")
    @DecimalMax(value = "100.0",message = "关联比例必须小于等于100")
    private BigDecimal linkScale;
}
